#include <ros/ros.h>
#include <ipc_bridge/ipc_bridge.h>

#include <nidaqIO/Doubles.h>
#include <ipc_bridge/msgs/nidaqIO_Doubles.h>

#define NAMESPACE nidaqIO
#define NAME Doubles


ros::Publisher pub;
NAMESPACE::NAME out_msg;

void callback(const ipc_bridge::NAMESPACE::NAME &msg)
{ 
		out_msg.data.resize(msg.length);
		for(int i=0;i<msg.length;i++)
			 out_msg.data[i]= msg.data[i];
	    pub.publish(out_msg);
}


#include "subscriber.h"

